package cn.iocoder.yudao.module.pickbook.controller.admin.classmember.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 班级成员 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ClassMemberRespVO {

    @Schema(description = "班级成员唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27")
    @ExcelProperty("班级成员唯一ID")
    private Long id;

    @Schema(description = "班级ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1292")
    @ExcelProperty("班级ID")
    private Long classId;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27245")
    @ExcelProperty("用户ID")
    private Long userId;

    @Schema(description = "加入班级时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("加入班级时间")
    private LocalDateTime joinTime;

    @Schema(description = "成员状态（正常/已移除等）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "成员状态（正常/已移除等）", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}